package com.sgl.myview.business;

import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;

import com.sgl.myview.R;
import com.sgl.myview.view.CustomTitleView;

public class CustomTextActivity extends AppCompatActivity {
    private CustomTitleView mCustomTitleView;


    public static Intent getInstance(Context mContext){
        return new Intent(mContext,CustomTextActivity.class);
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_custom_text);

        mCustomTitleView = (CustomTitleView) findViewById(R.id.cs);
        mCustomTitleView.setChooseListener(new CustomTitleView.ChooseListener() {
            @Override
            public void chooseY() {
                Toast.makeText(CustomTextActivity.this,"开始 chooseY",Toast.LENGTH_SHORT).show();
            }

            @Override
            public void chooseN() {
                Toast.makeText(CustomTextActivity.this,"开始 chooseN",Toast.LENGTH_SHORT).show();
            }
        });
    }
}
